Created
January 8, 2020 07:19
-
-
Save CODINGSAINT/27ce3572b4607e19f54c1547981ca061 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Observable.just("a","b","c","d","e","f","g","h","i","j") | |
.subscribe(new Observer<String>() { | |
@Override | |
public void onSubscribe(Disposable disposable) { | |
log.info("onSubscribe"); | |
} | |
@Override | |
public void onNext(String s) { | |
log.info("onNext -> {}",s); | |
} | |
@Override | |
public void onError(Throwable throwable) { | |
log.info("onError {}",throwable.getMessage()); | |
} | |
@Override | |
public void onComplete() { | |
log.info("onComplete"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment